package com.yycwxt.modules.admin.cbxs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class CbxsService {
    private CbxsMapper mapper;

    @Autowired
    public CbxsService(CbxsMapper mapper){
        this.mapper = mapper;
    }

    public List<Map<String, Object>> selectCbxx(int zq){
        Map<String, Object>  map = new HashMap<>();
        map.put("zq",zq);
//        map.put("storenames",new String[]{"湖南仓","沈北仓","金社长仓","金社长二仓","金社长返货仓"});
        return mapper.sqlcbxx(map);
    }

    public List<Object> findad(){
        return mapper.findad();
    }

    public List<String> getUrl(String name){
        return mapper.getUrl(name);
    }
}
